<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>


            <h3>Cadastro de Disciplina</h3>

            <div id="stylized" class="myform">

                <h:outputLabel>Nome: <span class="small">Nome da Disciplina</span></h:outputLabel>
                <p:autoComplete value="#{DisciplinaProfessorController.disciplina.nome}" completeMethod="#{DisciplinaProfessorController.complete}" id="nome" required="true" requiredMessage="Nome para a disciplina é requerido." />

                <h:outputLabel>Descrição: <span class="small">Descrição da disciplina</span></h:outputLabel>
                <h:inputTextarea value="#{DisciplinaProfessorController.disciplinaProfessor.descricao}" id="descricao">
                    <f:validateLength maximum="255" />
                </h:inputTextarea>


                <h:commandButton  styleClass="button" action="#{DisciplinaProfessorController.setModalEmentaCad}"  value="Add Ementa" id="addEmenta1" />


                <ui:include src="../ementa/ementaList.xhtml" id="ementaList" />


                <h:commandButton styleClass="button" action="#{DisciplinaProfessorController.persiste}" value="Salvar" id="salvar" />
                <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />




                <!--                        <p:dialog header="Opção de Resposta" widgetVar="dlg1" modal="true" width="500">
                                        <ui:include src="ementaCad.xhtml" id="ementaCad" />
                                    </p:dialog>-->





            </div>

        </ui:composition>

    </body>
</html>
